<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="/css/nav.css">
    <link rel="stylesheet" type="text/css" href="/font/iconfont.css">
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/layui.js"></script>
    <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script>
    <script type="text/javascript" src="/js/nav.js"></script>
<!--    <script src="/js/jquery.1.8.3.min.js"></script>-->
</head>
<body>
<div th:include="/common/nav :: nav" class="nav" style="float: left;"></div>
<div style="float: left;height: 100%;width: 87.5%;background-color: rgb(235, 243, 243);" >
    <div class="content">

        <div class="demoTable">
            搜索ID：
            <div class="layui-inline">
                <label><input class="layui-input" name="id" id="demoReload" autocomplete="off"  placeholder="输入id"></label>
            </div>
            <button class="layui-btn" data-type="reload">搜索</button>
        </div>
        <table class="layui-table" id="LAY_table_user" lay-filter="user">
            <th>id</th><th>地址</th><th>userId</th><th>工作区域</th><th>工号</th><th>真实名字</th><th>性别</th>
            <th>本月工资</th>
            <tr th:each="item: ${courierList}" >
                <td th:value="${item.getId()}" th:text="${item.getId()}"></td>
                <td th:value="${item.getId()}" th:text="${item.getAddress()}"></td>
                <td th:value="${item.getId()}" th:text="${item.getUser().getId()}"></td>
                <td th:value="${item.getId()}" th:text="${item.getWorkingArea().getAddressName()}"></td>
                <td th:value="${item.getId()}" th:text="${item.getNo()}"></td>
                <td th:value="${item.getId()}" th:text="${item.getRealName()}"></td>
                <td th:value="${item.getId()}" th:text="${item.getSex()}"></td>


                <td><a th:href="@{/admin/courierWorkNumDetailBycId(cId=${item.getId()})}">工资查询</a></td>
              <!--  <td><a th:id="month_deliver_num${item.getId()}">0</a></td>
                <td><a th:id="month_salary${item.getId()}">0</a></td>-->
            </tr>
        </table>


<!--        <table class="layui-table" id="LAY_table_user" lay-filter="user">
            <th>id</th><th>时间</th><th>状态</th><th>任务名</th><th>快递号</th><th>快递员名</th><th>快递员号</th><th>快递员区域</th>

            <tr th:each="item: ${taskList}" >
                <td th:value="${item.getId()}" th:text="${item.getId()}"></td>
                <td th:value="${item.getId()}" th:text="${item.getCreateTime()}"></td>
                <td th:value="${item.getId()}" th:text="${item.getState()}"></td>
                <td th:value="${item.getId()}" th:text="${item.getTaskName()}"></td>
                <td th:value="${item.getId()}" th:text="${item.getaPackage().getNo()}"></td>
                <td th:value="${item.getId()}" th:text="${item.getCourier().getRealName()}"></td>
                <td th:value="${item.getId()}" th:text="${item.getCourier().getNo()}"></td>
                <td th:value="${item.getId()}" th:text="${item.getCourier().getWorkingArea().getAddressName()}"></td>



            </tr>
        </table>-->

    </div>
</div>

<script>
    // //给收件量赋值
    // $.ajax({
    //     url: '/courier/getThisMonthFetchNum',
    //     method: 'GET',
    //     async: false
    // }).success(function(data){
    //     console.log(data);
    //     $("#month_fetch_num").text(data);
    //     fetchNum=data;
    // });
    // //给派件量赋值
    // $.ajax({
    //     url: '/courier/getThisMonthDeliverNum',
    //     method: 'GET',
    //     async: false
    // }).success(function(data){
    //     console.log(data);
    //     deliverNum=data;
    //     $("#month_deliver_num").text(data);
    // });
    // //给工作量量赋值
    // $("#month_sum_num").text(fetchNum+deliverNum);
</script>
</body>
</html>
